﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>微街秀 > 个人中心</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link href="plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="plugins/bootstrap-fileinput-master/css/fileinput.min.css" rel="stylesheet" type="text/css" />
    <link href="plugins/bootstrap-fileinput-master/css/fileinput.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="css/css.css?25" />
    <link href="css/Personal.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css">
    .erweim{bottom: 23.5%;left: 6px;}
    .ergzh{bottom: 15.5%;left: 14px;}
    </style>
</head>
<body>
    <form id="myform">
    <div class="wam">
        <div class="persondetail  ">
            <div class="My">
                我的</div>
            <img src="img/Seting.jpg" class="setimg" onclick=" if (login())window.location.href='Set.html'" />
            <div class="Myimg">
                <div class="Myings">
                    <input name="file_user_logo" id="file_user_logo" type="file" multiple="true">
                    <div class="UserDetail">
                        <p id="userid">
                        </p>
                        <p id="username" style="display:none">
                        </p>
                        <p style="word-break: keep-all;white-space: nowrap;"><span id="version" style="padding-right:5px;"></span> |
                        <span style="padding-left:5px;" onclick=" if (login())window.location.href='collection.html'">我的收藏</span></p>
                        <p style="word-break: keep-all;white-space: nowrap;"><span id="end_date" style="padding-right:5px;"></span> </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="personnum" style="display:none">
            <div class="staticleft" onclick=" if (login())window.location.href='collection.html'">
                <div class="statictxt">
                    我的收藏</div>
                <img src="img/45.png" class="staticimg" />
            </div>
            <div class="staticright" onclick=" if (login())window.location.href='Statistical.html?summny=wap'">
                <div class="statictxt">
                    数据统计</div>
                <img src="img/45.png" class="staticimg" />
            </div>
        </div>
        <div class="informatiom" style="margin-top:10px" onclick="toUrl(this); return false()">
            <div class="infomleft">
                名称</div>
            <div id="name" class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>
        <div class="informatiom" id = "phoneBody">
            <div class="infomleft">
                手机</div>
            <div id="phone" class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>
        <div class="informatiom" onclick="toUrl(this); return false()">
            <div class="infomleft">
                推广电话</div>
            <div id="tel" class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>
        <div class="informatiom" onclick="toUrl(this); return false()">
            <div class="infomleft">
                QQ</div>
            <div id="QQ" class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>
        <div class="informatiom" style="margin-top:10px" onclick="toUrl(this); return false()">
            <div class="infomleft">
                邮箱</div>
            <div id="Email" class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>
        <div id="wx_code" class="informatiom" onclick="window.location.href = 'update-ewm.html'">
            <div class="infomleft">
                微信二维码</div>
            <div class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>
        <div id="wx_public_code" class="informatiom" onclick="window.location.href = 'update-dyh.html'">
            <div class="infomleft">
                公众号二维码</div>
            <div class="infomRight">
            </div>
            <img src="img/45.png" class="infomImg" />
        </div>        
    </div>
    <div class="bottom">
        <ul>
            <li>
                <div onclick="window.location.href='index.html?25'">
                    <img src="img/tab1_g.png" /><br />
                    发现
                </div>
            </li>
            <li>
                <div onclick="window.location.href='publish.html?25'">
                    <img src="img/tab2_g.png" /><br />
                    发布
                </div>
            </li>
            <li>
                <div onclick="window.location.href = 'Makesh_1.html?25'">
                    <img src="img/tab3_g.png" /><br />
                    推广
                </div>
            </li>
            <li>
                <div class="Defutalcolor">
                    <img src="img/tab4_y.png" /><br />
                    我的
                </div>
            </li>
        </ul>
    </div>
 
      <div   class="backimg-panl buzhou hide" onclick="NextBZ(1)">
        <div class="font-content erweim">
            <div class=" text-center">
                <p>
                    点击此处</p>
                <p>
                    设置微信二维码</p>
            </div>
            <img src="img/buzhou/5_1.png"  style="    width: 61%;"  />
        </div>
       
    </div>

      <div  class="backimg-panl buzhou hide" onclick="SetBZ(5)">
        <div class="font-content ergzh">
            <div class=" text-center">
                <p>
                    点击此处</p>
                <p>
                    设置公众号二维码</p>
            </div>
            <img src="img/buzhou/5_2.png" style="    width: 61%;" />
        </div>
       
    </div>


    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/jquery-form.js" type="text/javascript"></script>
    <script src="plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="plugins/bootstrap-fileinput-master/js/fileinput.min.js" type="text/javascript"></script>
    <script src="plugins/bootstrap-fileinput-master/js/fileinput_locale_zh.js" type="text/javascript"></script>
    <script src="js/dialog.js" type="text/javascript"></script>
    <script src="js/gl-dialog.js" type="text/javascript"></script>
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script src="js/jquery-submit-1.1.js" type="text/javascript"></script>
    <script src="js/Personal.js?25" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //文章logo
            $("#file_user_logo").fileinput({
                showUpload: false,
                showCaption: false,
                showPreview: false,
                browseLabel: '',
                browseClass: "",
                browseIcon: '<img src="img/39.png" id="Headpont" />',
                removeClass: 'hide',
                fileType: "any",
                allowedFileExtensions: ['jpg', 'png', 'gif', 'bmp', 'jpeg']
            });

            var userAgent = navigator.userAgent.toLocaleLowerCase();
            if (userAgent.indexOf("wjx") != -1 && userAgent.indexOf("android") != -1) {

                //客户端
                $("#file_user_logo").hide();

                $("#Headpont").on("click", function () {
                    var param = { type: 1, cutType: 1, width: 100, height: 100, callback: "resetImage", url: "http://" + window.location.host + "/Client/Ajax/Upload.ashx?Img" };
                    var p = JSON.stringify(param);
                    window.location.href = "callback://imageUpload?" + p;
                });
            }
            else {
                //浏览器端
                //选择了图片提交图片
                $("#file_user_logo").change(function () {

                    if ($(this).val().length == 0) {
                        toast.show("文件格式错误");
                        return;
                    }
                    wait.show();

                    //选择好文件后提交表单
                    $("#myform").ajaxSubmit({
                        type: 'post',
                        dataType: "json",
                        url: '/Client/Ajax/Upload.ashx?Img&is_cut=1&width=100&height=100',
                        success: function (data) {
                            if (data.code == 0) {
                                wait.dismiss();
                                $(".Myings img").attr("src", data.item);
                                Upheadpont();

                            }
                            else {
                                wait.dismiss();
                                toast.show(data.msg);
                            }
                        },
                        error: function (XmlHttpRequest, textStatus, errorThrown) {
                            wait.dismiss();
                            $("#file_user_logo").val("");
                        }
                    });
                });
            }

            //修改手机号
            $("#phoneBody").on("click", function () {
                window.location.href = "reset-phone.html";
                //                inputBox("");
                //                function inputBox(val) {
                //                    GlInputBox({ title: "请输入新手机号", value: val, okClick: function (value) {
                //                        if (!_mobile.test(value)) {
                //                            GlToast({ body: _mobileTips, onClose: function () {
                //                                inputBox(value);
                //                            }
                //                            });
                //                        }
                //                        else {
                //                            value = $.trim(value);
                //                            if ($.trim($("#phone").text()) == value) {
                //                                GlToast({ body: "手机号不能和当前的相同", onClose: function () {
                //                                    inputBox(value);
                //                                }
                //                                });
                //                            }
                //                            else {
                //                                window.location.href = "reset-phone.html?phone=" + value;
                //                            }
                //                        }
                //                    }
                //                    });
                //                }

            });

        });

 
        //重新显示图片
        function resetImage(src) {
            $(".Myings img").attr("src", src);
            Upheadpont();
        }

        //微信登录时，更换登录方式
        function ChangeLogin(isupdate) {
            if (getCookie("logintype") == "1") {
                var old = getCookie("changelogin");
                if (old == null) old = "";
                if (old.indexOf(userid + ",") > -1 || old.indexOf("," + userid) > -1)
                    return;

                if (getQueryString("change") != null && getQueryString("change") == "1") 
                    return;
              
                if (isupdate != null && isupdate != 1)
                    window.location.href = 'change_login.html?phone=' + $("#phone").html();
            }
        }
        
        ShowBZ(5);
    </script>
    </form>
</body>
</html>
